#include <bits/stdc++.h>
using namespace std;

int main(){
	string x;
	getline( cin,x );
	int i;
	for( i=0;i<x.size();i++ ){
		if( x[i]>='A'&&x[i]<='E' ){
			x[i] = x[i] + 21;
		}else if( x[i]>='F'&&x[i]<='Z'){
			x[i] = x[i] - 5;
		}else{
			x[i] = x[i];
		}
	} 
	cout<<x;
} 
